package com.chongbangbang.service.impl;

import com.chongbangbang.mapper.PetSickInfoMapper;
import com.chongbangbang.pojo.PetSickInfo;
import com.chongbangbang.service.PetSickInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 宠物基本信息之疾病信息 服务实现类
 * </p>
 *
 * @author TP
 * @since 2022-03-16 15:20:37
 */
@Service
public class PetSickInfoServiceImpl extends ServiceImpl<PetSickInfoMapper, PetSickInfo> implements PetSickInfoService {

    @Autowired
    private PetSickInfoMapper petSickInfoMapper;
    /**
     * 根据宠物ID查询其疾病
     * @param petId
     * @return
     */
    @Override
    public List<PetSickInfo> getByPetId(Integer petId) {
        return petSickInfoMapper.getByPetId(petId);
    }
}
